<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
	<link rel="stylesheet" href="${staticServer}/inc/style/main.css"/>
	<link rel="stylesheet" href="${staticServer}/inc/style/page.css"/>
	<link rel="stylesheet" href="${staticServer}/css/consultant_client.css"/>
	<link rel="stylesheet" href="${staticServer}/css/consultant_personal_stat.css"/>
	<script src="${staticServer}/inc/js/jquery.js"></script>
	<script src="${staticServer}/inc/js/pageset.js"></script>
	<script src="${staticServer}/inc/js/infopad.js?2.2"></script>
	<script src="${staticServer}/inc/js/htmlfilter.js"></script>
	<script src="${staticServer}/inc/js/model_resp.js"></script>
	
	<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css"/>
    <script src="${staticServer}/inc/js/datepicker.js"></script>
	
	<script>
	//var infopad = parent.infopad;

	function init()
	{
	
	}
	function starquery(  )
	{
		var url = "";

			var sdate = $( "#start_date" ).val();
			var keuser = $("#keuser").val();
			var type = $("#type").val();
			var param_str = "";

			if( !empty( sdate ) ) param_str += "&sdate=" + sdate;
			if( !empty( keuser ) ) param_str += "&keuser=" + keuser;
			
			url = "?" + param_str;
		

		location.href = url;
	}
	
	function dt(){
		alert("tututj");
	}

$(function(){
	
	$("#start_date").bind("input propertychange",function(){
		alert("hh");
		})
	
	
	$("#start_date").change(function(){
		
		var keyname = $("#start_date").val();
	    window.location.href = "${contextPath}/index/tuandui_jx.htm?sdate=" + $("#start_date").val(); 
		
	});
}
	)


	</script>
</head>

<body>
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>资源统计管理</li>
			<li>&gt;</li>
			<li class="current">区域监管统计</li>
		</ul>
	</div>
	<input type="hidden" id="type" value="${type}">
	<div id="container">
		<div id="title"></div>

		<div class="fieldset_container">
			<fieldset>
				<legend>查询条件</legend>
				<ul>
					<li><label>查询月份：</label><input type="text" onchange = "dt()" id="start_date" size="15" value="${sdate}" rel="DATE::Y-m"/></li>
					
						<li><label>区域主管：</label>
											<select name="keuser" id="keuser">
		                	<option value="">-- 请选择目标 --</option>
		                	<#if uList??>
								<#list uList as list>
		                			<option value="${list.username}">${list.nickname}（${list.center}-${list.departments}-${list.job}）</option>
		                		</#list>
		                	</#if>
		                </select>
		                <input type="text" id="sp_user_ipt" size="10" value="">
		               	<input type="button" value=" 查询 " onclick="starquery()"/>
		                
						</li>
						
			
				</ul>
			</fieldset>
		</div>


		<table>
			<tr class="fields">
				<th>团队绩效统计</th>
			</tr>
				<tr>
					<td>
						<table id="tbl_reception_<?php echo $i ?>" style="min-width: 100px; width: 80%; float: left; margin: 2px;">
							<tr class="fields">
								<th colspan="2" style="">
									<span class="unit size14 stress"><#if start??>${start?date}</#if>到<#if end??>${end?date}</#if></span></th>
								
							</tr>

							<tr>
								<th  width="30%">当月课程数</th>
								<td width="30%"><span class="statbar" rel="<#if sum_rece=='0'>0<#else>root</#if>">${kc_count}</span></td>
								
							</tr>
							
							<tr>
								<th>当月业绩</th>
								<td><span class="statbar">${yeji}</span></td>
								
							</tr>
							
						
							<tr>
								<th>提点</th>
								<td>
								
							<span class="statbar">
							${tidian}
							</span>
									
								</td>
								
							
							<tr>
								<th>奖金</th>
								<td>
							<span class="statbar">
							${jiangjin}
							</span>	
							
								</td>
							
								</tr>
							
                           
						</table>
				</td>
			</tr>
		</table>
					
					
						
			
		
		
		
		
	</div>
</body>
</html>